﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace testing_thing
{
    public class TestOneWorldLoader : IWorldLoader
    {

        #region IWorldLoader Members

        public Location Load()
        {
            Location start = new Location(new string[] { "start" });
            Location northofstart = new Location (new string[] {"north"});
            northofstart.Title= "North of the start";
            northofstart.Description = "This place is north of start";
            start.Title = "The start...";
            start.Description = "This is the beginning";
            Item pen = new Item(new string[] { "pen" }, false);
            Item pencil = new Item(new string[] { "pencil" }, false);
            Item bag = new Item(new string[] { "bag" }, true);
            pen.Title = "Pen";
            pen.Description = "This is a pen you can write with it.";
            pencil.Title = "Pencil";
            pencil.Description = "This is a 2B pencil you can write with it.";
            bag.Title = "Bag";
            bag.Description = "This is a brown leather bag and can contain stuff";
            bag.Inventory.AddItem(pencil);
            start.Inventory.AddItem(pen);
            start.Inventory.AddItem(bag);
            Path north = new Path(new string[] { "north", "up" }, northofstart);
            north.Title = "North";
            start.AddPath(north);
            northofstart.Inventory.AddItem(pen);
            
            return start;
        }

        #endregion
    }
}
